package com.adou.common.dto;

import com.adou.common.model.FlowMain;
import com.adou.common.model.base.BaseEntity;

public class FlowMainOutDto extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String cformident;
    private String cflowname;
    private String cflowtype;
    private String adminUser;
    private Boolean bstate;

    public FlowMainOutDto(FlowMain flowMain) {
        this.setId(flowMain.getId());
        this.setCformident(flowMain.getCformident());
        this.setCflowname(flowMain.getCflowname());
        this.setCflowtype(flowMain.getCflowtype());
        this.setBstate(flowMain.getBstate());
        this.setAdminUser(flowMain.getAdminUser());
    }

    public String getAdminUser() {
        return adminUser;
    }

    public void setAdminUser(String adminUser) {
        this.adminUser = adminUser == null ? "" : adminUser;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCformident() {
        return cformident;
    }

    public void setCformident(String cformident) {
        this.cformident = cformident == null ? null : cformident.trim();
    }

    public String getCflowname() {
        return cflowname;
    }

    public void setCflowname(String cflowname) {
        this.cflowname = cflowname == null ? null : cflowname.trim();
    }

    public String getCflowtype() {
        return cflowtype;
    }

    public void setCflowtype(String cflowtype) {
        this.cflowtype = cflowtype == null ? null : cflowtype.trim();
    }

    public Boolean getBstate() {
        return bstate;
    }

    public void setBstate(Boolean bstate) {
        this.bstate = bstate;
    }
}
